using Godot;

[GlobalClass]
public partial class CIdleState : CState
{
    public override void run(Node n, double delta)
    {
        if (n is NCharacter cha)
        {
            //休闲动画
            cha.doAni(ANI.IDLE);
            if (cha.HasInput)
            {
                cha.mState = new CMoveState();
                return;
            }
        }
    }
}